<?php
/**
 * Created by PhpStorm.
 * User: Jmashimaro
 * Date: 2015/4/23
 * Time: 15:34
 */
class HelpApp extends MallbaseApp {

    private $url = 'http://m.heshetrends.com/';
    /**
     * 关于我们
     * @author jiayanxiu
     * @date 2014/09/15
     */
    public function about_us() {
        $action = '关于我们';
        setLogParameter($action);
        $method = strtoupper($_SERVER['REQUEST_METHOD']);
        if ($method !== 'GET') {
            $this->ajax_return(FLAG_ERROR, '非法请求！');
        }
        $url = getUrlByEnv("info/31.html");
        $data = array('url'=>$url);
        $this->ajax_return(FLAG_OK, '', $data);
    }

    /**
     * 联系我们
     * @author jiayanxiu
     * @date 2014/09/15
     */
    public function connect_us() {
        $action = '联系我们';
        setLogParameter($action);
        $method = strtoupper($_SERVER['REQUEST_METHOD']);
        if ($method !== 'GET') {
            $this->ajax_return(FLAG_ERROR, '非法请求！');
        }
        $url = getUrlByEnv("info/32.html");
        $data = array('url'=>$url);
        $this->ajax_return(FLAG_OK, '', $data);
    }


}